package org.cgc.utils;

import java.io.PrintWriter;

import javax.servlet.http.HttpServletResponse;

public class ReturnJson {
	
	/**
     * 
     * @param jsonstring
     * @param response
     * @return
     */
	public static void writejson(String jsonstring,HttpServletResponse response){
		try {
			response.setContentType("text/html;charset=utf-8");
			response.setCharacterEncoding("utf-8");
			PrintWriter out = response.getWriter();
			out.write(jsonstring);
			out.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
